<?php
/**
 * AD San Diego configuration
 *
 * This file is where all the configuration settings
 * for San Diego are stored. All items are clearly labeled.
 * @package Configuration
 */

/**
 * Define RETS URL
 */
define('AD_RETS_URL', 'http://rets17.sandicor.com/login.asmx/Login');

/**
 * Define RETS user agent.
 */
define('AD_RETS_USER_AGENT', 'LV_AGENT_RETS');

/**
 * Define RETS version number.
 */
define('AD_RETS_VERSION', 'RETS/1.7');

/**
 * Define RETS default search value.
 */
define('AD_RETS_SEARCH', '(()');

/**
 * Define RETS search class name.
 */
define('AD_RETS_SEARCH_CLASS',	'9');

/**
 * Define RETS maximum search limit.
 */
define('AD_RETS_SEARCH_LIMIT',	200);

/**
 * Define RETS default value for all fields.
 */
define('AD_RETS_ALL_FLDS',	'');

$DISABLED_SEARCH_FORM_FIELDS = array(
);

$MAP_QUERY_PREFIX = array(
	 'bath_rooms'					=> ''
	,'bed_rooms'					=> ''
	,'city'							=> '*'
	,'exterior'						=> '|'
	,'garage'						=> ''
	,'listing_date'					=> ''
	,'listing_price'				=> ''
	,'school_district'				=> '|'
	,'selling_price'				=> ''
	,'selling_date'					=> ''
	,'sqft_above_ground'			=> ''
	,'status'						=> '|'
	,'street_name'					=> '*'
	,'style'						=> '|'
	,'sub_division'					=> '*'
	,'year_built'					=> ''
	,'zip'							=> ''
);

$MAP_QUERY_SUFFIX = array(
	 'bath_rooms'					=> ''
	,'bed_rooms'					=> ''
	,'city'							=> '*'
	,'exterior'						=> ''
	,'garage'						=> ''
	,'listing_date'					=> '+'
	,'listing_price'				=> ''
	,'school_district'				=> ''
	,'selling_date'					=> '+'
	,'selling_price'				=> ''
	,'sqft_above_ground'			=> ''
	,'status'						=> ''
	,'street_name'					=> '*'
	,'style'						=> ''
	,'sub_division'					=> '*'
	,'year_built'					=> ''
	,'zip'							=> ''
);

$MAP_LOOKUP_FLD_NAME = array(
	 'list_city'					=> '1_391'
	,'list_exterior'				=> '1_221'
	,'list_school_district'			=> '1_1304'
	,'list_status'					=> '1_1290'	//'1_1282', '1_1287'
	,'list_style'					=> '1_519'	//'1_503', '1_246'
//	,'qry_basements'				=> 'BASEMENTRES'
);

$MAP_RESULT_STD_NAME = array(
	 'ad_img_id'					=> 'ml_number'

 	,'acres'						=> 'acres_f2'
// 	,'annual_assessment'			=> 'resianas'
 	,'apn'							=> 'taxparcelrealist_f208'
 	,'appliances'					=> 'equipment_f236'
 	,'area'							=> 'area_f1339'
// 	,'basement'						=> 'resibsmt'
// 	,'basement_feat'				=> 'resibsmf'
 	,'bath_rooms'					=> 'totbaths_f1603'
 	,'bed_rooms'					=> 'totbeds_f1711'
 	,'bedroom_2_area'				=> 'bed2dim_f753'
 	,'bedroom_3_area'				=> 'bed3dim_f751'
 	,'bedroom_4_area'				=> 'bed4dim_f750'
 	,'bedroom_5_area'				=> 'bed5dim_f749'
 	,'city'							=> 'city_f58'
// 	,'comments'						=> 'marketingremarks'
 	,'construction'					=> 'constr_f1840'
 	,'cooling'						=> 'coolsystem_f235'
 	,'county'						=> 'countyid_f66'
 	,'dining_room_area'				=> 'roomdiningdim_f764'
 	,'directions'					=> 'directions_f71'
 	,'exterior'						=> 'siding_f190'
 	,'fireplaces'					=> 'numfireplace_f280'
 	,'full_bathrooms'				=> 'bathful_f1710'
 	,'garage'						=> 'prkgsptot_f1646' //'numgarage_f297'
 	,'garage_description'			=> 'prkgardescu1_f1860'
 	,'half_bathrooms'				=> 'un1hbth_f1826'
 	,'heating'						=> 'heatsystem_f748'
// 	,'img_id'						=> 'mlnumber'
 	,'kitchen_area'					=> 'roomkitchendim_f759'
	,'last_modified_date_time'		=> 'lasttransdate_f1151'
// 	,'latitude'						=> 'latitude'
 	,'listing_agent_first_name'		=> 'agentname_f34'
 	,'listing_agent_last_name'		=> 'lastname_f117'
 	,'listing_date'					=> 'listdate_f96'
 	,'listing_office_name'			=> 'listingagentofficephone'
 	,'listing_price'				=> 'listprice_f98'
// 	,'longitude'					=> 'longitude'
 	,'lot_dimension'				=> 'lotdim_f128'
 	,'master_bedroom_area'			=> 'roommasterbeddim_f754'
 	,'ml_number'					=> 'sysid'
// 	,'other_buildings'				=> ''
 	,'picture_count'				=> 'imagecount_f170'
 	,'picture_modified_date_time'	=> 'lastimgtransdate_f1385'
 	,'property_type'				=> 'propertytype_f1'
	,'school_district'				=> 'schooldistrict_f183'
	,'selling_agent_first_name'		=> 'agentsell_fullname_f40'
 	,'selling_agent_last_name'		=> 'agentsell_fullname_f40'
 	,'selling_date'					=> 'closedate_f59'
 	,'selling_price'				=> 'saleprice_f182'
 	,'sewer'						=> 'sewer_f244'
 	,'sqft_above_ground'			=> 'sqfttotal_f192'
// 	,'sqft_below_ground'			=> ''
 	,'state'						=> 'state_f193'
 	,'status'						=> 'status_f102'
 	,'status_date'					=> 'statuschangedate_f1374'
// 	,'street_direction'				=> 'streetdirection'
 	,'street_name'					=> 'streetname_f194'
	,'street_number'				=> 'streetnumdisplay_f196'
// 	,'street_post_direction'		=> 'streetpostdirection'
// 	,'street_suffix'				=> 'streetsuffix'
 	,'style'						=> 'restyle_f1652'
 	,'sub_division'					=> 'subdivision_f197'
// 	,'three_quarter_bathrooms'		=> 'threequarterbathrooms'
 	,'unit_number'					=> 'unitnumber_f214'
 	,'view'							=> 'viewdesc_f219'
 	,'water'						=> 'water_f222'
 	,'year_built'					=> 'yearbuilt_f224'
	,'zip'							=> 'retszip_f2030'	//'zipcode_f226'
	,'zoning'						=> 'resizone'
);
